load("//bazel:build.bzl", "redpanda_cc_library")

redpanda_cc_library(
    name = "server",
    srcs = [
        "api.cc",
        "configuration.cc",
        "handlers.cc",
        "proxy.cc",
    ],
    hdrs = [
        "api.h",
        "configuration.h",
        "fwd.h",
        "handlers.h",
        "proxy.h",
    ],
    implementation_deps = [
        "//src/v/kafka/client:utils",
    ],
    visibility = ["//visibility:public"],
    deps = [
        "//src/v/base",
        "//src/v/cluster",
        "//src/v/config",
        "//src/v/kafka/client",
        "//src/v/kafka/client:config_utils",
        "//src/v/kafka/client:configuration",
        "//src/v/kafka/client:exceptions",
        "//src/v/kafka/protocol:fetch",
        "//src/v/kafka/protocol/schemata:offset_commit_request",
        "//src/v/model",
        "//src/v/net",
        "//src/v/pandaproxy:core",
        "//src/v/pandaproxy:error_reply",
        "//src/v/pandaproxy:json",
        "//src/v/pandaproxy:logger",
        "//src/v/pandaproxy:parsing",
        "//src/v/pandaproxy:rest_requests",
        "//src/v/pandaproxy:rest_swagger_definitions",
        "//src/v/security",
        "//src/v/ssx:sformat",
        "//src/v/utils:adjustable_semaphore",
        "//src/v/utils:log_hist",
        "@abseil-cpp//absl/container:flat_hash_map",
        "@boost//:algorithm",
        "@boost//:lexical_cast",
        "@boost//:range",
        "@fmt",
        "@seastar",
    ],
)
